Skip to content

Conversation

stephentoub
Copy link
Contributor

Description

  • Updated to the latest M.E.AI.Abstractions release
  • Set new ChatMessage.CreatedAt property
  • Set and use new DataContent.Name property
  • Added citations to BedrockChatClient
  • Added implementation of IImageGenerator (as [Experimental] because the interface is itself [Experimental])

Motivation and Context

Light-up new surface area in Microsoft.Extensions.AI.Abstractions.

Testing

Manual testing against various models with basic scenarios.

Screenshots (if appropriate)

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

Copy link

@ericstj ericstj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be able to plumb edit/variation as well.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Microsoft.Extensions.AI.Abstractions package from version 9.7.0 to 9.8.0 and implements new features enabled by the updated library. The changes include setting new ChatMessage properties, handling citations in responses, and adding experimental image generation capabilities.

  • Updates Microsoft.Extensions.AI.Abstractions dependency to version 9.8.0 across all project files
  • Adds citation support to BedrockChatClient for both streaming and non-streaming responses
  • Implements experimental IImageGenerator interface with support for multiple image generation models

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
BedrockMEAITests.NetFramework.csproj Updates test project dependency to version 9.8.0
ExperimentalAttribute.cs Adds polyfill for [Experimental] attribute for non-.NET targets
BedrockImageGenerator.cs Implements IImageGenerator interface with support for Stability AI and Amazon image models
BedrockChatClient.cs Adds CreatedAt property setting, citation handling, and DataContent.Name property usage
AmazonBedrockRuntimeExtensions.cs Adds AsIImageGenerator extension method marked as experimental
AWSSDK.Extensions.Bedrock.MEAI.nuspec Updates package dependency references to version 9.8.0
AWSSDK.Extensions.Bedrock.MEAI.NetStandard.csproj Updates package reference to version 9.8.0
AWSSDK.Extensions.Bedrock.MEAI.NetFramework.csproj Updates package reference to version 9.8.0

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -18,7 +18,7 @@
</PropertyGroup>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add tests for the citation changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There aren't currently any merged tests for these types in general; I've just been doing basic manual testing. I'd be happy to add some automated tests if there's a standard way you have to do that.

@peterrsongg
Copy link
Contributor

I updated the versions of core and bedrock runtime as well as bumped the nuspec. running through our build system right now and if it passes, will approve

stephentoub and others added 4 commits September 11, 2025 21:44
- Set new ChatMessage.CreatedAt property
- Set and use new DataContent.Name property
- Added citations to BedrockChatClient
- Added implementation of IImageGenerator (as [Experimental] because the interface is itself [Experimental])
@stephentoub stephentoub changed the title Update to Microsoft.Extensions.AI.Abstractions 9.8.0 Update to Microsoft.Extensions.AI.Abstractions 9.9.0 Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants